package com.htfg.cardActivate.user.dao;

import com.htfg.cardActivate.user.entity.BankPerson;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface BankPersonMapper {
    int deleteByPrimaryKey(String uid);

    int insertSelective(BankPerson record);

    BankPerson selectByPrimaryKey(String uid);

    int updateByPrimaryKeySelective(BankPerson record);

    BankPerson selectByPhone(String mobile);

    List<Map<String,Object>> selectDistance(@Param("lon") double lon, @Param("lat") double lat,
                                            @Param("bankName")String bankName,
                                            @Param("pageIndex") Integer pageIndex,
                                            @Param("pageSize") Integer pageSize);
    int selectDistanceCount(@Param("bankName")String bankName);
}